# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=3.25
pkgrel=0
pkgdesc="Netfilter userspace extensions for iptables"
url="https://inai.de/projects/xtables-addons/"
arch="all"
license="GPL-2.0-only"
makedepends="iptables-dev bash coreutils"
subpackages="$pkgname-doc"
source="https://inai.de/files/xtables-addons/xtables-addons-$pkgver.tar.xz"
options="!check" # Package has no test suite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild
	make CC="${CC-gcc}" kbuilddir=
}

package() {
	make builddir= DESTDIR="$pkgdir" install
}

sha512sums="
d027614b36aacd65472e76533ace15a8a97eb1db33ff10226a525c5b4d8232c9732336875abfeac71a3a4351971982e884ede7ffe743b14b391b1eedca56be2d  xtables-addons-3.25.tar.xz
"
